package com.zto.tbschedule.console.service;

import com.zto.tbschedule.console.tbschedule.*;
import com.zto.tbschedule.console.vo.BackTask;
import com.zto.tbschedule.console.vo.Task;
import com.zto.tbschedule.console.vo.TaskSchedule;

import java.util.List;

/**
 * Created by Administrator on 2015-11-29.
 */
public interface IScheduleService {

    public List<ScheduleTaskType> getScheduleTaskTypeListByAppId(Long id);

    public List<ScheduleStrategy> getScheduleStrategyListByTaskNameAndAppId(Long id, String taskName);

    public List<ScheduleServer> getScheduleServerListByTaskNameAndAppId(Long id, String taskName);

    public List<ScheduleTaskItem> getScheduleTaskItemListByTaskNameAndAppId(Long appId, String taskName);

    public void editTaskSchedule(TaskSchedule taskSchedule);

    public void editTaskScheduleSts(TaskSchedule taskSchedule);

    public void delTaskSchedule(TaskSchedule taskSchedule);

    public void editTask(Task task);

    public void clearTask(Task task);

    void delTask(Task task);

    void backupTask(Long appId);

    List<BackTask> searchBackupTask(Long appId);

    void delBackupTask(Long appId);

    void recoveryBackupTask(Long id);
}
